import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from "path"
// https://vitejs.dev/config/
export default defineConfig(({ mode }) => ({
  // base: mode === "dev" ? "/" : "./pro-main",
  plugins: [vue()],
  resolve: {
    extensions: [".ts", ".tsx", ".js"],
    alias: {
      "@": path.resolve(__dirname, "src"),
    },
  },
  server: {
    port: 1001
  },
  build: {
    outDir: "../../dist/main",
    emptyOutDir: true,
  },
}))
